class OscBlog {
  String author;
  int id;
  String title;
  int authorId;
  int type;//博客：1-原创 4-转载， 新闻：//新闻类型 [0-链接新闻|1-软件推荐|2-讨论区帖子|3-博客|4-普通新闻|7-翻译文章]
  String pubDate;
  int commentCount;

  OscBlog({this.author, this.id, this.title, this.authorId, this.type, this.pubDate, this.commentCount});

  OscBlog.fromJson(Map<String, dynamic> json) {
    author = json['author'];
    id = json['id'];
    title = json['title'];
    authorId = json['authorid'];
    type = json['type'];
    pubDate = json['pubDate'];
    commentCount = json['commentCount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['author'] = this.author;
    data['id'] = this.id;
    data['title'] = this.title;
    data['authorid'] = this.authorId;
    data['type'] = this.type;
    data['pubDate'] = this.pubDate;
    data['commentCount'] = this.commentCount;
    return data;
  }
}

